@import '~@/style/base.less';

@login_color: #02ADDA;
.line_wrap {
  min-height: 100%;
  background: #ffffff;
  display: flex;
  flex-flow: column;
}

.line_login {
  flex: 1 0 auto;
  display: flex;
  flex-flow: column;
  align-items: center;
  padding-top: 200px;
  .title {
    position: relative;
    font-size: 48px;
    line-height: 48px;
    font-weight: bold;
    color: @color_text;
    margin: 0 0 42px;
    &::after {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 10px;
      border-radius: 2px;
      background: @login_color;
      opacity: 0.18;
    }
  }
  .icon {
    svg {
      border-radius: 20px;
      width: 146px;
      height: 146px;
      margin: 0 0 22px;
    }
  }
  .tips {
    font-size: 28px;
    color: @color_subtext;
  }
}

.other_login {
  flex: 0 0 auto;
  text-align: center;
  .title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    > span {
      padding: 0 16px;
      font-size: 30px;
      color: @color_subtext;
    }
    &::before,
    &::after {
      content: '';
      width: 193px;
      height: 6px;
      background: url('~@/assets/images/left@2x.png') center no-repeat;
      background-size: 193px 6px;
    }
    &::after {
      transform: rotate(180deg);
    }
  }
  .link {
    font-size: 28px;
    color: @login_color;
    margin: 0 0 50px;
  }
}

.rule {
  padding: 40px 0;
  color: @color_subtext;
  font-size: 24px;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
 
  a {
    color: @login_color;
  }
  
}
.checkbox {
  .frow(center, center);
  svg { 
    width: 28px;
    height: 28px;
    position: absolute;
    left: 0; 
    top: 3px;
    border: 1px solid @color_border_simple;
    border-radius: 4px;
  }
  label {
    display: inline-block;
    padding-left: 40px;
    position: relative;
    cursor: pointer;
    margin-left: -0.28rem;
  }
  input[type="checkbox"] {
    opacity: 0;
    width: 28px;
    height: 28px;
    z-index: 2;
  }
  label {
    transition: color 80ms linear;
  }
  label svg {
    transition: border-color 80ms linear;
  }
  label svg path {
    transition: stroke-dashoffset 80ms linear;
  }
  input[type="checkbox"]:checked ~ label svg path {
    stroke-dashoffset: 0;
  }
  input[type="checkbox"]:checked ~ label svg {
   border-color: @login_color; 
  }
  
  // div {
  //   font-size: 5em;
  //   margin: 3em auto;
  //   width: 7em;
  //   font-family: Arial;
  // }
}

.rule_wrap {
  flex: 1 1;
  padding: 20px;
  overflow: auto;
  height: 8rem;
  > h1 {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
  }
  >h3{
    font-size: .28rem;
    font-weight: bold;
  }
  >h4{
    font-size: .24rem;
    font-weight: bold;
    color: #666666;
    text-indent: 48px;
  }
  > p {
    font-size: 24px;
    color: #666666;
    text-indent: 48px;
  }
  .br {
    margin: 0;
  }
}

.login_wrap {
  min-height: 100%;
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-flow: column;
}
.users_login_logo {
  flex: 0 0 auto;
  display: block;
  width: 223px;
  margin: 100px auto;
}

.users_login_form {
  flex: 1 0;
  width: 650px;
  margin: 0 auto;
  .form_line {
    height: 88px;
    border-radius: 16px;
    border: 1px solid @color_border_simple;
    display: flex;
    align-items: center;
    color: @login_color;
    margin-top: 40px;
    font-size: 30px;
  }
  .form_input {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    padding: 0 32px;
    height: 50px;
    background: transparent;
    color: @color_text;
    &::placeholder {
      color: @color_subtext;
    }
  }
  .area_code {
    position: relative;
    border: 0;
    background: transparent;
    color: @color_text;
    flex: 1 0 auto;
    padding: 0 22px 0 32px;
    text-align: left;
    height: 50px;
    & + .form_input {
      padding: 0 32px 0 22px;
    }
    &::before {
      content: '+';
    }
    &::after {
      content: '';
      display: block;
      width: 4px;
      height: 28px;
      background: @color_border_simple;
      position: absolute;
      right: 0;
      top: 50%;
      margin-top: -14px;
    }
  }
  .form_captcha {
    border: 0;
    flex: 0 0 295px;
    height: 42px;
    color: @login_color;
    background: transparent;
    text-align: right;
    padding-right: 32px;
    &:disabled {
      opacity: 0.5;
    }
  }
  .form_tips {
    font-size: 28px;
    margin-top: 20px;
    color: @color_subtext;
    padding: 0 16px;
    height: 36px;
  }
  .form_submit {
    display: block;
    width: 100%;
    height: 88px;
    border-radius: 16px;
    border: 0;
    margin-top: 40px;
    font-weight: bold;
    font-size: 34px;
    // .buttonBg();
    // .buttonShadow();
    color: #fff;
    background: @login_color;
    transition: 0.5s linear;
    transition-property: opacity;
    &:disabled {
      opacity: 0.5;
    }
  }
}

.users_login_method {
  flex: 0 0 auto;
  display: block;
  color: @login_color;
  font-size: 30px;
  border: 0;
  background: transparent;
  margin: 50px auto 0;
}

.forget_wrap {
  .frow(space-between, center);
  margin-top: 20px;
}

.login_action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-left: 16px;
  color: @color_subtext;
  .form_forget {
    display: block;
    text-align: right;
    color: @login_color;
  }
}